<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <table id="table"></table>
                </div>
            </div>
        </div>
    </div>
</div> 
<script>
var columns = [{
    field: 'credit',
    title: '余额变动'
},{
    field: 'surplus',
    title: '余额结余'
}, {
    field: 'createtime',
    title: '变动时间'
}, {
    field: 'remark',
    title: '备注'
}];

$('#table').bootstrapTable({
    url: '/SPAdmin/agent?logaid={{$logaid}}',
    dataType: 'json',
	method: 'post',
    pagination: true,//开启分页
    pageSize:15,
    pageNumber:1,
    sidePagination:'server',
    search: false, //开启刷选
    columns: columns,
    queryParams:function(params) {
        /******获取分页数据时，这里你可以带上你自定义的参数,bootstrap table会把这些参数合并到请求里******/
       return params;
	}
});
</script>
